<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label for="username" class="control-label col-xs-12 col-sm-2">{:__('username')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="username" data-rule="required" class="form-control" name="row[username]" type="text"  value="{$row.username|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label for="phone" class="control-label col-xs-12 col-sm-2">{:__('phone')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="phone" data-rule="required" class="form-control" name="row[phone]" type="text"  value="{$row.phone|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label for="province" class="control-label col-xs-12 col-sm-2">{:__('province')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="province" data-rule="required" class="form-control" name="row[province]" type="text"  value="{$row.province|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label for="city" class="control-label col-xs-12 col-sm-2">{:__('city')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="city" data-rule="required" class="form-control" name="row[city]" type="text"  value="{$row.city|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label for="area" class="control-label col-xs-12 col-sm-2">{:__('area')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="area" data-rule="required" class="form-control" name="row[area]" type="text"  value="{$row.area|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label for="address" class="control-label col-xs-12 col-sm-2">{:__('address')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="address" data-rule="required" class="form-control" name="row[address]" type="text"  value="{$row.address|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('stage')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[stage]', ['0'=>'毛坯', '1'=>'简装','2'=>'精装', '3'=>'拎包入住'], $row['stage'])}
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('deal')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[deal]', ['0'=>'未处理', '1'=>'已处理'], $row['deal'])}
        </div>
    </div>

    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
